<?php
session_start();
header('Content-Type: text/html;charset=utf-8');
	

	unset($_SESSION['username']);
    unset($_SESSION['id']);
	
	//销毁session
	session_destroy();

	echo "安全退出成功！";
    echo '<script>setTimeout(\'location="login.php"\', 3000);</script>';
	
?>